﻿#ifndef STUDENTMENU_H
#define STUDENTMENU_H

#include <QDialog>
#include "infostudent.h"
#include "fileoperator.h"
#include "modelset.h"
namespace Ui {
class studentMenu;
}

class studentMenu : public QDialog
{
    Q_OBJECT

public:
    explicit studentMenu(QWidget *parent = nullptr);
    ~studentMenu();

    //获取登陆时的Id以检索相关信息
    void getLoginId(QString loginId);
    //通过读取文件信息，设置学生对象
    void setStuObject();

private slots:
    void on_btn_exit_clicked();

    void on_btn_check_myinfo_clicked();

    void on_btn_display_all_clicked();

    void on_btn_giveup_course_clicked();

    void on_btn_modify_password_clicked();

    void on_btn_confirm_clicked();

    void on_btn_select_course_clicked();

    void on_btn_display_course_clicked();

    void on_btn_quit_clicked();

    void sortView(int a);
private:
    Ui::studentMenu *ui;
    studentInfo *stuInfo;
    fileOperator *op;
    QString loginId;
    QStandardItemModel *model;
    modelSet *setM;
    bool flag=0;
};

#endif // STUDENTMENU_H
